from feapder import Item, UpdateItem


class ErrorItem(UpdateItem):
    __table_name__ = "py_company_unnormal"
    __update_key__ = ["abTime", "speCause", "remCause", "decOrgCN", "reDecOrgCN", "remDate", "digest", "type"]

    def __init__(self):
        self.abTime = None  # 列入日期
        self.speCause = None  # 列入原因
        self.remCause = None  # 移出原因
        self.decOrgCN = None  # 列入机关
        self.reDecOrgCN = None  # 移出机关
        self.remDate = None  # 移出日期
        self.digest = None
        self.type = None


class YearItem(UpdateItem):
    __table_name__ = "py_company_report"
    __update_key__ = ["year", "status", "pub_time", "digest"]

    def __init__(self):
        self.year = None
        self.status = None
        self.pub_time = None
        self.digest = None


class UpdataReportNumberItem(UpdateItem):
    __table_name__ = "py_company_base"
    __update_key__ = ["reportNumber","id"]

    def __init__(self):
        self.reportNumber = None
        self.id=None

class PhoneItem(UpdateItem):
    __table_name__="py_compamy_phone"
    __update_key__ = ["digest","phone","phoneNum","priori","telType","telState","operator","province","city"]
    def __init__(self):
        self.digest = None
        self.phone = None
        self.phoneNum = None
        self.priori = None
        self.telType = None
        self.telState = None
        self.operator = None
        self.province = None
        self.city = None
